home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cswitc
/
test1.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-06-27
|
391b
|
22 lines
#include "stdio.h"
FILE *fp, *fp2;
char buf[200];
char *passmsg="test1 pass complete";
main()
{
fp=fopen("test1.c","r");
if(fp==NULL)
{
send_md_msg(1,"Error opening file.",30);
goto leave;
}
while(fgets(buf,80,fp)!=NULL);
fclose(fp);
leave:
send_md_msg(1,passmsg, strlen(passmsg)+1);
}